$(function(){
  let $range = $('#range'),
      $start = $('#start'),
      $supend = $('#suspend'),
      $end = $('#end'),
      n = 0,
      c = 0;

  $start.click(()=>{
    n===0 && (n=setInterval(()=>{
      $range.attr('value',c++)
    },100))
  });
  $supend.click(()=>{
    clearInterval(n);
    n=0;
  });
  $end.click(()=>{
    $range.attr("value",c=0);
  });
});
